package unit4.work.ball;

public class Test {
    public static void main(String[]args) {
        Ball ball = new Ball("我是篮球", "我的直径是15厘米", "人造革或真皮",
        "0.5kg", "适合年轻人","二氧化碳","椭圆") ;

        BasketBall bf=new BasketBall("我是篮球", "我的直径是15厘米", "人造革或真皮",
                "0.5kg", "适合年轻人","二氧化碳","椭圆");
        FootBall ff=new FootBall("我是篮球", "我的直径是15厘米", "人造革或真皮",
                "0.5kg", "适合年轻人","二氧化碳","椭圆");

        BasketBall b=new BasketBall("我是篮球", "我的直径是15厘米", "人造革或真皮",
                "0.5kg", "适合年轻人","二氧化碳","椭圆",5);
        FootBall f=new FootBall("我是篮球", "我的直径是15厘米", "人造革或真皮",
                "0.5kg", "适合年轻人","二氧化碳","椭圆","手");
        System.out.println(ball.play());
        System.out.println(ball.play()+b.play(10,1));
        System.out.println(ball.play()+b.play(10));
        System.out.println(b.zb());
    }

}
